/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 15:16:59  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "证书")
public class EduCertificateUserEditBean implements java.io.Serializable {

    // columns START
    private Long id;

    // 证书ID
    @ApiModelProperty(value = "证书ID")
    @NotNull(field = "证书")
    private Long certId;

    // 人员ID
    @ApiModelProperty(value = "人员ID")
    @NotNull(field = "人员")
    private Long userId;

    // 证书编号
    @ApiModelProperty(value = "证书编号")
    private String certNo;

    // 取证日期
    @ApiModelProperty(value = "取证日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date takenTime;

    // 到期日期
    @ApiModelProperty(value = "到期日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date outOfDateTime;
    // columns END

    //人员/承包商人员flag 0: 人员; 1 承包商人员
    @ApiModelProperty(value = "人员/承包商人员flag 0: 人员; 1 承包商人员")
    private Integer userContractorFlag;

    //附件
    @ApiModelProperty(value = "附件")
    private List<BaseAttachmentBean> attachmentBeans;

}
